import type { OrderListType } from "@/types/list";
import { http } from "@/untils/request";

/**
 * 获取订单列表
 * @param data 
 * @returns 
 */
export const getOrderListAPI = (data: {
    page: number,
    pageSize: number,
    orderState: number
}) => {
    return http<OrderListType>({
        url: '/member/order',
        method: 'GET',
        data
    })
}